package org.learn.intermediate;

import java.util.HashSet;

public class HashSetIncrement {
    public static void main(String[] args) {
        HashSet hashSet = new HashSet();
//        for (int i = 1; i < 100; i++) {
//            hashSet.add(i);
//        }
        //
        for (int i = 0; i <= 12; i++) {
           hashSet.add(new A(i));

        }
    }
}
class A {
     int n ;

     A(int n ) {
        this.n = n;
    }

    @Override
    public int hashCode() {
        return 100;
    }
}